feat: add fortify authentication foundation#119
Merged
ibourgeois merged 6 commits intomainfrom Mar 24, 2026
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a Laravel Fortify-backed local authentication baseline for the desktop shell, including UI scaffolding, routing protection, and feature tests to validate the core auth flows.
Changes:
- Introduces Fortify (config + service provider + action classes) and registers it in the application bootstrap.
- Adds custom Blade auth screens (login/register/forgot/reset) and wires the desktop shell profile menu to POST
/logout. - Protects the home (
/) route behindauthand updates/extends feature tests accordingly.
Reviewed changes
Copilot reviewed 24 out of 25 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| tests/Feature/FortifyAuthenticationTest.php | Adds end-to-end feature coverage for Fortify auth flows (redirects, views, register/login/logout, reset). |
| tests/Feature/DesktopShellTest.php | Authenticates requests now that / is protected. |
| routes/web.php | Wraps the home route in the auth middleware. |
| resources/views/welcome.blade.php | Pulls viewer identity from the authenticated request to populate the profile menu. |
| resources/views/components/desktop/profile-menu.blade.php | Switches “Log out” to a CSRF-protected POST form to Fortify’s logout route. |
| resources/views/auth/layout.blade.php | Adds a shared auth page layout for the Fortify screens. |
| resources/views/auth/login.blade.php | Implements the login screen UI. |
| resources/views/auth/register.blade.php | Implements the registration screen UI. |
| resources/views/auth/forgot-password.blade.php | Implements the password reset request screen UI. |
| resources/views/auth/reset-password.blade.php | Implements the password reset submission screen UI. |
| app/Providers/FortifyServiceProvider.php | Configures Fortify views, action handlers, and rate limiters. |
| app/Actions/Fortify/CreateNewUser.php | Defines registration validation + user creation behavior. |
| app/Actions/Fortify/ResetUserPassword.php | Defines password reset validation + persistence behavior. |
| app/Actions/Fortify/UpdateUserPassword.php | Defines authenticated password update behavior. |
| app/Actions/Fortify/UpdateUserProfileInformation.php | Defines profile update validation + persistence behavior. |
| app/Actions/Fortify/PasswordValidationRules.php | Centralizes password validation rules used by Fortify actions. |
| config/fortify.php | Adds Fortify configuration and enables registration + password resets. |
| database/migrations/2026_03_24_063201_add_two_factor_columns_to_users_table.php | Adds Fortify-compatible 2FA columns to users. |
| bootstrap/providers.php | Registers the application’s FortifyServiceProvider. |
| composer.json | Adds laravel/fortify dependency. |
| composer.lock | Locks Fortify and its transitive dependencies. |
| README.md | Documents the new local auth endpoints and setup notes. |
| AGENTS.md / CLAUDE.md / GEMINI.md | Updates the “ecosystems packages” list to include Fortify. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Contributor
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 36 out of 37 changed files in this pull request and generated 3 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.